Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!udel!mmdf From: Brian Reynolds Newsgroups: comp.os.minix Subject: (Atari) Virtual console and ANSI ESC commands Message-ID: <48461@nigel.ee.udel.edu> Date: 21 Mar 91 22:59:14 GMT Sender: mmdf@ee.udel.edu Lines: 24 This all takes place on an Atari Mega 4ST with minix 1.5.10.3. I have compiled the kernel with the default 2 virtual consoles and 1 serial port. This morning while using kermit I received some line noise that the main console (/dev/tty0) interpreted as an ANSI "change foreground to black" command (ESC[40m). No problem I thought, I switched to /dev/tty1, used elle to write a script to reset the inverse mode (ESC[0m) and the foreground and background colors (ESC[30m and ESC[47m) and tested it on /dev/tty1. It worked so I switched to /dev/tty0, got out of kermit and ran the script. Nothing happened. I switched back and changed the colors and tried /dev/tty0 again. I could see things now, but the colors weren't what I expected. After some testing I've discovered that the "change foreground color" string (ESC[4xm where 0<=x<=9) changes the backround color on /dev/tty0 and that the "change background color" string (ESC[3xm) does nothing. On /dev/tty1 these strings work properly. I haven't had time to look at the source yet. Has anyone else noticed this? Is there a command that resets all of the terminal defaults? 'stty default' gets most of them, but it doesn't change the screen colors. Brian Reynolds "... a drone from sector 7G." Fusion Systems Group reynolds@fsg.com -or- ...!uupsi!fsg!reynolds