Page 1 of 2

TTY ANSI Terminal

Posted: Mon May 13, 2019 9:10 am
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

Re: TTY ANSI Terminal

Posted: Mon May 13, 2019 9:00 pm
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).

Re: TTY ANSI Terminal

Posted: Mon May 13, 2019 10:02 pm
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

Re: TTY ANSI Terminal

Posted: Mon May 13, 2019 10:20 pm
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.

Re: TTY ANSI Terminal

Posted: Mon May 13, 2019 10:34 pm
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.

Re: TTY ANSI Terminal

Posted: Tue May 14, 2019 11:13 am
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 26 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

Re: TTY ANSI Terminal

Posted: Tue May 14, 2019 2:25 pm
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.
terminal1-3-53.jpg
Terminal VT52 over tty


Tom

Re: TTY ANSI Terminal

Posted: Tue May 14, 2019 3:35 pm
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

Re: TTY ANSI Terminal

Posted: Tue May 14, 2019 11:33 pm
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.

Re: TTY ANSI Terminal

Posted: Thu May 16, 2019 8:23 am
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.