Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 20:00 18 May 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : ASCII Video Terminal

Author Message
Barawitzka
Newbie

Joined: 31/03/2015
Location: Austria
Posts: 4
Posted: 10:46am 31 Mar 2015
Copy link to clipboard 
Print this post

Hi all,
i successfully implemented the AVT to the AVR CP/M Stick Project. Even Wordstar 4.0 works with it, but not really full with DEC VT100. It's not a problem of missing VT100 ESC sequences, there are missing ANSI sequences. Working with a Terminal Emulation VT100 I see what is missing. The colour sequences of ANSI are not implemented.
I'm not very experienced in video programming of the PIC32MX250F128B. Do anyone see a chance to implement a colour mixing for this AVT too?
Thanks for all input.

Boris
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3167
Posted: 01:05pm 31 Mar 2015
Copy link to clipboard 
Print this post

There are two problems with this. The first its that due to the way the video is generated the ASCI Video Terminal is monochrome only, the second is that the VT100 did not have any codes for colour because it was monochrome also.

If I knew what codes for colour WordStar is generating I could modify the Terminal's firmware to intercept the colour codes and throw them away so that they do not clutter up the display.

Geoff
Geoff Graham - http://geoffg.net
 
Barawitzka
Newbie

Joined: 31/03/2015
Location: Austria
Posts: 4
Posted: 08:46pm 31 Mar 2015
Copy link to clipboard 
Print this post

Hi Geoff,
thank you for this quick answer. On the screen i see only fragments like "[0;1m"(ANSI CODE for yellow) and "[m"(ANSI CODE for reset colour". I will try to find the complete code through the wschange.com .
My hope was that the MX250F128B has two further free ports free fast enough to mix up colour, but that isn't the fact.
Thank you for this great project. It is astonishing what you are performing magic with only one pic.

Boris
 
Barawitzka
Newbie

Joined: 31/03/2015
Location: Austria
Posts: 4
Posted: 06:05am 03 Apr 2015
Copy link to clipboard 
Print this post

Hi Geoff,
i hope i found all:
here are the codes:
ESC[m reset videoattr.
ESC[7m sign invers
ESC[30m sign black
ESC[31m sign red
ESC[32m sign green
ESC[33m sign yellow
ESC[34m sign blue
ESC[35m sign magenta
ESC[36m sign cyan
ESC[37m sign white
ESC[40m background black
ESC[41m background red
ESC[42m background green
ESC[43m background yellow
ESC[44m background blue
ESC[45m background magneta
ESC[46m background cyan
ESC[47m background white

thank you for your help
Best Regards Boris
 
Barawitzka
Newbie

Joined: 31/03/2015
Location: Austria
Posts: 4
Posted: 06:23am 03 Apr 2015
Copy link to clipboard 
Print this post

Hi Geoff,
here i found from annother source following base VT100 commands:
Current VT-100 Code list

ESCc Terminal Reset
ESC[m Turn off character attributes
'' ESC[0m Turn off character attributes
ESC[1m Turn bold character on
ESC[7m Turn reverse video on
ESC[30m Foreground black
ESC[31m Foreground green
ESC[32m Foreground red
ESC[33m Foreground yellow
ESC[34m Foreground blue
ESC[35m Foreground magenta
ESC[36m Foreground cyan
ESC[37m Foreground white
ESC[40m Background black
ESC[41m Background green
ESC[42m Background red
ESC[43m Background yellow
ESC[44m Background blue
ESC[45m Background magenta
ESC[46m Background cyan
ESC[47m Background white
ESC[A Move cursor up
'' ESC[nA Move cursor up n lines
ESC[B Move cursor down
'' ESC[nB Move cursor down n lines
ESC[C Move cursor right
'' ESC[nC Move cursor right n lines
ESC[D Move cursor left
'' ESC[nD Move cursor left n lines
ESC[H Move cursor to upper left corner
'' ESC[;H Move cursor to upper left corner
ESC[line;columnH Move cursor to screen location v,h
ESC[f Move cursor to upper left corner
'' ESC[;f Move cursor to upper left corner
'' ESC[line;columnf Move cursor to sceen location v,h
'' ESCD Move/scroll window up one line
'' ESC[D Move/scroll window up one line
'' ESCL Move/scroll window up one line (undocumented)
ESC[L Move/scroll window up one line (undocumented)
'' ESCM Move/scroll window down one line
ESC[M Move/scroll window down one line
'' ESCK Clear line from cursor right
ESC[K Clear line from cursor right
'' ESC[0K Clear line from cursor right
'' ESC[1K Clear line from cursor left
'' ESC[2K Clear entire line
ESC[J Clear screen from cursor down
'' ESC[0J Clear screen from cursor down
'' ESC[1J Clear screen from cursor up
ESC[2J Clear entire screen
'' ESC[0c Terminal ID responds with [?1;0c for VT-100 no options
'' ESC[c Terminal ID responds with [?1;0c for VT-100 no options
'' Esc[value@ Insert one character
'' Esc[valueP Delete one character
ESC[?25h Cursor on
ESC[?25l Cursor off

Best Regards Boris
 
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1664
Posted: 02:30pm 29 Apr 2016
Copy link to clipboard 
Print this post

Just visiting the world of VT100 emulation after 100 years, and annoyed by the dancing cursor.

Has anyone had this work? Or other simple alternatives?

  Barawitzka said  I found from another source the following base VT100 commands:

ESCc Terminal Reset
.
.
.
ESC[?25h Cursor on
ESC[?25l Cursor off

Best Regards Boris


Esc[?25l doesn't seem to work in either MMchat or TerraTerm.

Thanks

Phil.

 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024