Does XSharp have a console mode?

This forum is meant for questions and discussions about the X# language and tools
Post Reply
xnetExplorer
Posts: 41
Joined: Thu Dec 31, 2015 5:28 pm
Location: USA

Does XSharp have a console mode?

Post by xnetExplorer »

Hi,

Does XSharp have a Console option, like Harbour or Flagship?

In other words, is there a mode where commands like @ n,n PROMPT and Menu To will work?
User avatar
wriedmann
Posts: 3644
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Does XSharp have a console mode?

Post by wriedmann »

Hi Dan,

in Windows, Console Mode has a different meaning. It means you can write and read to the console like a command line program. Since this is a standard Windows feature, X# can do that (like VO and Vulcan can do it).

The text mode output currently is not available in X#, but AFAIK Chris and Robert have implemented something for a customer. There these commands were translated to WinForms and WPF. So a standard Clipper/Harbour application was translated to a WinForms or WPF application.

For sure, the development team can give more informations.

Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
User avatar
robert
Posts: 4225
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Does XSharp have a console mode?

Post by robert »

Dan,

If there is really interest for apps in .Net that look like the good old Clipper apps on a console window, then we could certainly emulate that on the Console window from Windows.
But I doubt that there is interest for that.

For now you can use ? and ?? which are translated to calls to System.Console.Write() and System.Console.WriteLine().

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
xnetExplorer
Posts: 41
Joined: Thu Dec 31, 2015 5:28 pm
Location: USA

Does XSharp have a console mode?

Post by xnetExplorer »

Thanks Wolfgan and Robert,

I'm really only interested specifically in the Menu to interface. If there's one thing that I miss from the Dos days, it's the keyboard driven interface and menu system.

Although Alt-F is available universally, it's a very different feel. There's a feeling of 'Flow' from the older report writers and spreadsheets, where the navigation was driven mainly by motor memory in the fingers. The draaaaaaging of the mouse, although it's fine for certain things like copying blocks of text, is a step back (for me) in terms of convenience.

Although there are console interfaces and commands, it does sound like the answer is 'no' in general. At least in the .net world.


Regards,
User avatar
wriedmann
Posts: 3644
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Does XSharp have a console mode?

Post by wriedmann »

Hi Dan,

it may be a bit more difficult than in the DOS days, but you can drive also Windows applications completely with the keyboard.
This is true for sure for Win32 and WinForms applications, and may be not valid for WPF applications.

I can only speak for my VO applications where I have put a considerable amount of time to implement keyboard handling, like changing from one field to another one using the Enter key, or the up and down arrows like in Clipper applications.

At least my customers are requiring a modern application style - and they consider Win32 applications as outdated. They like the WPF style and look.... and even WinForms applications are seen as old-style.

Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
xnetExplorer
Posts: 41
Joined: Thu Dec 31, 2015 5:28 pm
Location: USA

Does XSharp have a console mode?

Post by xnetExplorer »

I understand. Pretty much every Windows application has some hot key associated with the main function. But it's still a different feel.

I guess one of the things the old applications had, was a feeling of movement. So when you clicked a hot key to bring up the main menu, and the arrow keys to select a menu option on the top bar, and then clicked Enter to select a submenu, there was a distinct feeling that you were 'moving' objects around.

It just doesn't feel the same way, with modern windows.


Anyway, this is neither here nor there, just a side topic. I can code personal applications in any language that does the job, while my office requires php or a microsoft language.
User avatar
wriedmann
Posts: 3644
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Does XSharp have a console mode?

Post by wriedmann »

Hi Dan,

unfortunately sometimes a modern look&feel conflicts with efficient handling, but since the target of our software is the user, we have to accomplish what they need.

I remember when many years ago during an application show at a VO conference in Germany we saw several very interesting applications, like one that controlled the entire sensors of the UNO headquarter in Vienna. After all these demonstrations, the Xbase++ guys demonstrated a project for the German Post that had moved a Clipper terminal application to OS/2 and Win32 with exactly the same black and white look as the original Clipper application.
While we all agreed that this was a technically valid demonstration, visually we all were shocked because it seemed a dinosaur coming from the past.

Currently, it is the web that sets the visual styles, and unfortunately we as Windows programmers have to follow these standards, and personally I see only the possibility to do something with WPF (if not changing to Electron and Javascript).

Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
xnetExplorer
Posts: 41
Joined: Thu Dec 31, 2015 5:28 pm
Location: USA

Does XSharp have a console mode?

Post by xnetExplorer »

Fortunately, none of that prevents any of us from coding our personal programs in any language we want, unapologetically.

But unfortunately, management often gets in the way of servicing the end user, when it comes to business. So I'm prevented from moving to php 7.x, which has better functional support. Or of using Groovy or Clojure instead of Java, in my last job. And the current job has one Access application, clunky but familiar, and they won't let me port it to .Net. They certainly won't let me use XSharp.

So, we have to work with the environment that's handed to us. For sure.
But nobody can stop us from using any environment we choose, when coding for our personal whims.
Terry
Posts: 306
Joined: Wed Jan 03, 2018 11:58 am

Does XSharp have a console mode?

Post by Terry »

Dan

How right you are!

That was one of the reasons, behind a suggestion I made some time ago to change name/emphasis of XSharp to something more in tune with "Business-Management" thinking.

Sharp does not resonate with many Business Managers.

Terry
xnetExplorer
Posts: 41
Joined: Thu Dec 31, 2015 5:28 pm
Location: USA

Does XSharp have a console mode?

Post by xnetExplorer »

Good point.
Post Reply