Recent

Author Topic: Console User Interfaces  (Read 985 times)

Curt Carpenter

  • Hero Member
  • *****
  • Posts: 759
Console User Interfaces
« on: May 20, 2025, 01:05:51 am »
Does anyone have a link to an article about deigning good user interfaces for console apps (perhaps using the CRT unit)?  It's been so long that I've forgotten a lot of the "best practice" approaches from all those years ago.

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 1290
Re: Console User Interfaces
« Reply #1 on: May 20, 2025, 08:05:54 am »
Hello,
Free Vision ? tutorial project( deutsch)
Friendly, J.P
« Last Edit: May 20, 2025, 08:20:54 am by Jurassic Pork »
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

Thaddy

  • Hero Member
  • *****
  • Posts: 19273
  • Glad to be alive.
Re: Console User Interfaces
« Reply #2 on: May 20, 2025, 08:52:33 am »
The demo project that comes with FreeVision is also a good starter.
Also any info and books for TurboVision will work more or less for that.
There are also interfaces like ncurses.
objects are fine constructs. You can even initialize them with constructors.

cdbc

  • Hero Member
  • *****
  • Posts: 2818
    • http://www.cdbc.dk
Re: Console User Interfaces
« Reply #3 on: May 20, 2025, 09:51:33 am »
Hi
@Curt: For your info, there are units in 'Free Vision' that starts with 'u', they're the Unicode versions. If you run into /Codepage-Hell/ try using them instead...
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release &  FPC Main -> Lazarus Main

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 1290
Re: Console User Interfaces
« Reply #4 on: May 20, 2025, 11:21:21 am »
in attachment the editor project from Free vision github tutorial, translated in english by chatGpt

on my laptop on Windows 11, the background seems "flickering" . How do you avoid this ?

(to run the program on windows , don't forget to uncheck  Run Parameters/Launching Application/use launching Application)
« Last Edit: May 20, 2025, 11:27:28 am by Jurassic Pork »
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

paule32

  • Hero Member
  • *****
  • Posts: 647
  • One in all. But, not all in one.
Re: Console User Interfaces
« Reply #5 on: May 20, 2025, 12:17:19 pm »
MS-IIS - Internet Information Server, Apache, PHP/HTML/CSS, MinGW-32/64 MSys2 GNU C/C++ 13 (-stdc++20), FPC 3.2.2
A Friend in need, is a Friend indeed.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12905
  • FPC developer.
Re: Console User Interfaces
« Reply #6 on: May 20, 2025, 12:33:04 pm »
in attachment the editor project from Free vision github tutorial, translated in english by chatGpt

on my laptop on Windows 11, the background seems "flickering" . How do you avoid this ?

I ran from commandline (so not via lazarus) and don't see flickering

Thaddy

  • Hero Member
  • *****
  • Posts: 19273
  • Glad to be alive.
Re: Console User Interfaces
« Reply #7 on: May 20, 2025, 12:50:10 pm »
Under Windows I can spot some flickering on a slow machine whem a console is started, but not when I skip the GUI from Windows altogether.
Then again it should run fine on e.g. a 30386 or less.
Windows console IO for terminals is really slow.
« Last Edit: May 20, 2025, 01:39:43 pm by Thaddy »
objects are fine constructs. You can even initialize them with constructors.

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 1290
Re: Console User Interfaces
« Reply #8 on: May 20, 2025, 01:25:05 pm »
I ran from commandline (so not via lazarus) and don't see flickering
With Render  Graphics APi Parameter to Direct2D  for the cmd console :    background not flickering
With Render  Graphics APi Parameter to Direct3D 11  for the cmd console :    background flickering  (little)
« Last Edit: May 20, 2025, 01:27:04 pm by Jurassic Pork »
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

Curt Carpenter

  • Hero Member
  • *****
  • Posts: 759
Re: Console User Interfaces
« Reply #9 on: May 20, 2025, 04:44:56 pm »
Thank you very much for all the inputs.  Downloaded the TurboVision book from the archive and will spend time with it today, and copied the FV files for a look later.  Nobody ever did documentation like Borland did back in the day...

Thanks again.   

 

TinyPortal © 2005-2018