MODE 40|80|BW40|BW80|CO40|CO80
MODE COMn:baud[,parity[,data[,stop]]]
MODE LPTn:[cols][,lines]
Sets the display, a serial port, or a printer. Any other argument, or none at all, displays Syntax error.
Sets the display to 40 or 80 columns. BW turns color off, as SCREEN 0,0 does, and CO turns it on.
Sets a serial port’s parameters:
For example, MODE COM1:96 is the same as MODE COM1:9600,N,8,1.
A serial port is set by opening it with its parameters and an input buffer length of 0 (see COM), which initializes the port and releases it again, so a port that’s already open (eg, the console) isn’t changed.
Sends an IBM/Epson printer its print codes:
Any other value, or a value that’s omitted, sends nothing for that setting (eg, MODE LPT1:,8 sets only the lines per inch).
Source: MODE.BAS
Copyright (c) 2020-2026 Jeff Parsons Released under MIT License