Recent

Author Topic: Elegant UI TextMode  (Read 4032 times)

x2nie

  • Hero Member
  • *****
  • Posts: 515
  • Impossible=I don't know the way
    • impossible is nothing - www.x2nie.com
Elegant UI TextMode
« on: September 02, 2022, 02:24:01 pm »
Hi, I wonder whether it is still possible to customize the console text in this planet ?
Yes, it was doable to change several ASCII "face" like what Norton DOS apps era, while I were student (1999).



But currrently, I only have fpc compiler on Linux,
and sadly I have no any part of source code to start with.


So my question is:
1. Is it possible to change ASCII font shape/face using fpc?
2. Can we run that in linux ? (by any tool if needed: wine, dosbox, native?)
3. How? a simple code, or workable fpc/lazarus project would be appreciated  8-)


Thanks You

When you were logged in, you can see attachments.
Lazarus Github @ UbuntuCinnamon-v22.04.1 + LinuxMintDebianEdition5

AlexTP

  • Hero Member
  • *****
  • Posts: 2487
    • UVviewsoft
Re: Elegant UI TextMode
« Reply #1 on: September 02, 2022, 02:30:44 pm »
It was performed (in DOS era) by loading different font into Video card memory. FPC cannot do it but maybe you will find some library for this.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11943
  • FPC developer.
Re: Elegant UI TextMode
« Reply #2 on: September 02, 2022, 02:32:32 pm »
I did this once for FreeBSD, but such tricks usually only work on the textmode console of the OS, not with terminals under a graphical environment.

Afaik with those graphical termnals, you can often set the font with parameters when launching the console.


Red_prig

  • Full Member
  • ***
  • Posts: 153
Re: Elegant UI TextMode
« Reply #3 on: September 02, 2022, 02:41:42 pm »
there are platform dependent paths, for example: https://docs.microsoft.com/en-us/windows/console/setcurrentconsolefontex

x2nie

  • Hero Member
  • *****
  • Posts: 515
  • Impossible=I don't know the way
    • impossible is nothing - www.x2nie.com
Re: Elegant UI TextMode
« Reply #4 on: September 02, 2022, 03:14:49 pm »
Well, amazing. nice responses, friends !.
So the known solution is by providing a "font file" into console  ;D ? that make sense.
So, whether special font for DOS, or TTF font for modern (graphical console).
it seem promising to try.


Anyway, IIRC when I were young, it doesn't requires any font, it only dump an memory address with bits of new font face. but, lets forget the non-doable solution (except when using emulator such as DOSBox).


Now, back to console font, I found "Fontraption", an VGA-font editor.[1]  it also released with source-code [2]
Further, it also has a VGA Font Collection.
I also noticed that what we are talking about was "VGA Font' topic[3]. :-[ (sorry, it was hard keyword for SEO to find).


As bonus, fyi, that guy has VGA/CRT simulation (visual effect), very nice videos. I love how the PalmOS is simulated; very realistic [4]


Back again to the topic, I still finding a sample run-able demo (source code).
let me know if you have any (Dos / turbo pascal  also accepted).


[1] https://int10h.org/blog/2019/05/fontraption-vga-text-mode-font-editor/
[2] https://github.com/viler-int10h/Fontraption/blob/master/VGA.inc

[3] https://en.wikipedia.org/wiki/VGA_text_mode
[4] https://int10h.org/blog/2021/03/simulating-non-crt-monitors-ffmpeg-flat-panels/
When you were logged in, you can see attachments.
Lazarus Github @ UbuntuCinnamon-v22.04.1 + LinuxMintDebianEdition5

 

TinyPortal © 2005-2018