Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2009-09

How to build Nice and Convenient Console Menu ?

10 messages · 7 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Jonas Maebe
to Tom__G
Tom__G wrote
Does anyone know how to build console menu, eg with highlight keys and arrows navigations, like images below ?

You can either use the crt unit, or the video and keyboard units.

Jonas

Reply by email

Marco van de Voort
to Jonas Maebe

In our previous episode, Jonas Maebe said:

> Does anyone know how to build console menu, eg with highlight keys and > arrows navigations, like images below ? You can either use the crt unit, or the video and keyboard units.

The lister demo tries to do the latter ( to select files, not menu items, but the principles are the same.

Reply by email

Mehmet Erol Sanliturk
to Tom__G: Hi Does anyone know how to build console menu, eg with highlight keys and arrows…
Tom__G wrote 11 lines
Hi Does anyone know how to build console menu, eg with highlight keys and arrows navigations, like images below ? Thanks Tom http://www.nabble.com/file/p25643956/menu1.jpg http://www.nabble.com/file/p25643956/menu2.jpg

In the following page ,

http://files.chatnfiles.com/Alde-Carousel_2/005B/indexb3a7.html

please see

PIBMENUS.ZIP ,

It should work in Console mode with CRT unit or a similar unit .

Thank you very much .

Mehmet Erol Sanliturk

Reply by email

Graeme Geldenhuys
to Tom__G: Hi Does anyone know how to build console menu, eg with highlight keys and arrows…

Tom__G het geskryf:

Does anyone know how to build console menu, eg with highlight keys and arrows navigations, like images below ?

I agree with what Jonas said. I would also suggest the Free Vision classes (include with FPC) - same as what the textmode Free Pascal IDE is written in.

I also need to create some console applications - setup application and simple config programs for Linux console mode. I'm looking at using Free Vision (why reinvent the wheel). Ultimately, I would like to write a DirectFB (linux framebuffer) backend for fpGUI Toolkit. That way my GUI and Console apps can look identical.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

Reply by email

Michael Van Canneyt
to Graeme Geldenhuys
Graeme Geldenhuys wrote 14 lines
Tom__G het geskryf: > > Does anyone know how to build console menu, eg with highlight keys and > arrows navigations, like images below ? I agree with what Jonas said. I would also suggest the Free Vision classes (include with FPC) - same as what the textmode Free Pascal IDE is written in. I also need to create some console applications - setup application and simple config programs for Linux console mode. I'm looking at using Free Vision (why reinvent the wheel). Ultimately, I would like to write a DirectFB (linux framebuffer) backend for fpGUI Toolkit. That way my GUI and Console apps can look identical.

But they will not work on a secure shell session from one server to another :-)

Michael.

Reply by email

Graeme Geldenhuys
to Michael Van Canneyt

Michael Van Canneyt het geskryf:

But they will not work on a secure shell session from one server to another :-)

I don't know, and actually don't care. :-) What I want to use it for is purely for installation/config style applications. The user will be in-front of that machine - in our scenario. Other users have also requested DirectFB support, to use fpGUI on some mobile linux devices that don't have X Window install - though I know nothing about mobile devices so I can't comment on pros/cons of those.

Side note:
Talking about "old style" console applications. Last week I was on leave and dug around in my garage. I found a crate of my old original software. Boxed sets of Turbo Pascal 6, Turbo C++ 3, Windows 3.1, OS/2 2.1 (CD-Rom version), OS/2 Warp v3 (diskette version (55 diskettes to be exacty!)), OS/2 Warp Connect v3, OS/2 Warp v4, Visual Age C++ for OS/2 etc... Wow, all those old software brought back good memories. :-)

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

Reply by email

Michael Van Canneyt
to Tom__G
Tom__G wrote 12 lines
Michael Van Canneyt wrote: > > But they will not work on a secure shell session from one server to > another > :-) > > Michael. > I actually need to make it work via SSH... :-(

In that case either of the CRT, video unit or Free Vision will work.

The remark about SSH was only concerning Graeme's framebuffer back-end for fpGUI.

Michael.

Reply by email

Malcolm Poole
to Graeme Geldenhuys: Michael Van Canneyt het geskryf: I don't know, and actually don't care. :-) What I want…
Graeme Geldenhuys wrote 9 lines
Side note: Talking about "old style" console applications. Last week I was on leave and dug around in my garage. I found a crate of my old original software. Boxed sets of Turbo Pascal 6, Turbo C++ 3, Windows 3.1, OS/2 2.1 (CD-Rom version), OS/2 Warp v3 (diskette version (55 diskettes to be exacty!)), OS/2 Warp Connect v3, OS/2 Warp v4, Visual Age C++ for OS/2 etc... Wow, all those old software brought back good memories. :-)

The menu screenshot that Tom_G posted took me back nearly 20 years to programming CP/M menus
for the Amstrad PCW. I must look out and compile the Joyce emulator and run some of that code again...

Malcolm

Reply by email