TTY ANSI Terminal

Anything QL Software or Programming Related.
tcat
Super Gold Card
Posts: 633
Joined: Fri Jan 18, 2013 5:27 pm
Location: Prague, Czech Republic

TTY ANSI Terminal

Post by tcat »

Hi,

I am just thinking how to turn my real thing QL into an ANSI terminal. On Linux side I can set terminal line by stty.

e.g. EDIT baud rate
$ stty -F /dev/ttyS1 2400 cs8 clocal cstopb raw -echo

I hook SER2 QL port to /dev/ttyS1 with a serial cable.

I believe, by standard, serial port `0', is for system console, where VT100, VT52 used to connect, to boot and oversee the *ux machine. I connect to port `1' as per above stty.

So I have a serial line at both ends, I believe should somehow work.
ATARI ST VT52(DEC) emulator <==> Linux, stty, works this way, I hope.

What emulators would you recommend for QL end, I wish to test something simple, not PE driven for a start?

Many thanks.
Tom


stephen_usher
Gold Card
Posts: 429
Joined: Tue Mar 11, 2014 8:00 pm
Location: Oxford, UK.
Contact:

Re: TTY ANSI Terminal

Post by stephen_usher »

If I could get the source and binary off one of my QL floppies I could send you my VT52+T4010 terminal emulator. I wrote it back in 1988.

It actually emulates the University College London BBC terminal emulator, including extensions to program the function keys via *FX commands. :-)

I've a USB floppy drive but can't remember if it can be coaxed into reading QL floppies and if so how to package QL programs (code+header).


tcat
Super Gold Card
Posts: 633
Joined: Fri Jan 18, 2013 5:27 pm
Location: Prague, Czech Republic

Re: TTY ANSI Terminal

Post by tcat »

Hi Stephen,

I have discovered your sources here, I may try to assemble. I noticed the assembly makes use of local labels.

https://www.earth.ox.ac.uk/~steve/software/terminal/

Many thanks
Tom


User avatar
janbredenbeek
Super Gold Card
Posts: 629
Joined: Wed Jan 21, 2015 4:54 pm
Location: Hilversum, The Netherlands

Re: TTY ANSI Terminal

Post by janbredenbeek »

tcat wrote: What emulators would you recommend for QL end, I wish to test something simple, not PE driven for a start?
You might want to try QLTerm, it's a simple terminal emulator supporting ANSI. It allows redirection of the input channel which enables it to work as a Telnet client when running under an emulator with TCP/IP support.
http://www.dilwyn.me.uk/internet/qltrm235.zip

Jan.


stephen_usher
Gold Card
Posts: 429
Joined: Tue Mar 11, 2014 8:00 pm
Location: Oxford, UK.
Contact:

Re: TTY ANSI Terminal

Post by stephen_usher »

tcat wrote:Hi Stephen,

I have discovered your sources here, I may try to assemble. I noticed the assembly makes use of local labels.

https://www.earth.ox.ac.uk/~steve/software/terminal/

Many thanks
Tom
Oh! I'd forgotten that I'd made that page!

:-)

I used the Computer One assembler and linker.


tcat
Super Gold Card
Posts: 633
Joined: Fri Jan 18, 2013 5:27 pm
Location: Prague, Czech Republic

Re: TTY ANSI Terminal

Post by tcat »

Hi,

I have assembled the executable prog with 27k dataspace, attached in `qzip' format.
Compiled in SER2IR port, set to 2400 baud at terminal end.
term.zip
terminal-3-53
(4.52 KiB) Downloaded 118 times
I set host terminal line in a good faith to match the above.
$ stty -F /dev/ttyS1 2400 cs8 cstopb raw echo

I am not able to connect to my *ux host so far, I must have been missing something.
I just expect, after pressing [ENTER] (a few times) I should see the login prompt, as if typed
`login' on the host dirrectly.

Code: Select all

$ su -c'login'
lynx login: tcat
Password:
My cabling is this, to test connections I do

Linux to QL:
COPY SER2 TO SCR
$ cat > /dev/ttyS1
when typing in Linux term, chars appear on QL screen

and vice versa
QL to Linux:
$ cat /dev/ttyS1
COPY CON_ TO SER2
when typing on QL keyboard, chars appear in Linux term

QL / Linux - cabling
/////////////////////////////
TX <==> RX
RX <==> TX
CTS <==> RTS
DTR <==> CTS
GND <==> GND

I must have been missing something all the way, any ideas?
Many thanks in advance.

Tom


tcat
Super Gold Card
Posts: 633
Joined: Fri Jan 18, 2013 5:27 pm
Location: Prague, Czech Republic

Re: TTY ANSI Terminal

Post by tcat »

Hi,

It works, I realised that serial `ttyS1' has to be respawned using `getty' (get tty on serial line).

These settings works here with `terminal-3-53' defaults.
2400 SER2IR XON/OFF

Code: Select all

$ stty -F /dev/ttyS1 2400 cs8 cstopb cooked -crtscts echo
$ /sbin/getty -L ttyS1 vt52 # needs root priviledges
I wish to post `term_scr' as well.
EDIT cannot save to ser2, a quick photo attached.
Terminal VT52 over tty
Terminal VT52 over tty
Tom
Last edited by tcat on Wed May 15, 2019 6:38 am, edited 1 time in total.


tcat
Super Gold Card
Posts: 633
Joined: Fri Jan 18, 2013 5:27 pm
Location: Prague, Czech Republic

Re: TTY ANSI Terminal

Post by tcat »

Hi Jan,

Your VT52 term works also nicely, as it can cope with many ANSI escapes. I use your earlier version `qlterm v232'.
I run at 2400 so far, I will test if I can get faster.

Possible to open port with handshake, i.e. SER2HR rather than raw SER2IR? Actually not sure if of any benefit, just thinking for transfering binary files?

Many thanks
Tom


User avatar
janbredenbeek
Super Gold Card
Posts: 629
Joined: Wed Jan 21, 2015 4:54 pm
Location: Hilversum, The Netherlands

Re: TTY ANSI Terminal

Post by janbredenbeek »

tcat wrote:Hi Jan,

Your VT52 term works also nicely, as it can cope with many ANSI escapes. I use your earlier version `qlterm v232'.
I've added some features in the meantime such as 512x256 in 8 colours on SMSQ/E.
Possible to open port with handshake, i.e. SER2HR rather than raw SER2IR? Actually not sure if of any benefit, just thinking for transfering binary files?
It's configurable using the S*BASIC config program (qltconfig_bas).

Jan.


stephen_usher
Gold Card
Posts: 429
Joined: Tue Mar 11, 2014 8:00 pm
Location: Oxford, UK.
Contact:

Re: TTY ANSI Terminal

Post by stephen_usher »

tcat wrote:Hi,

It works, I realised that serial `ttyS1' has to be respawned using `getty' (get tty on serial line).

These settings works here with `terminal-3-53' defaults.
2400 SER2IR XON/OFF

Code: Select all

$ stty -F /dev/ttyS1 2400 cs8 cstopb cooked -crtscts echo
$ /sbin/getty -L ttyS1 vt52 # needs root priviledges
I wish to post `term_scr' as well.
EDIT cannot save to ser2, a quick photo attached.
terminal-3-53.jpg

Tom
I'm glad that the program proved useful.


Post Reply