[Coco] XMODE
Gregory Law
glaw at live.com
Mon Mar 6 19:12:59 EST 2017
It might help to read the SCF-Type Device Descriptor Modules section in
the NitrOS-9 Technical Reference
(http://nitros9.sourceforge.net/wiki/index.php/Sequential_Character_File_Manager).
nam=t2
mgr=SCF
ddr=sc6551
hpn=07
hpa=FF68
upc=00 -- Case: 0=upper- and lowercase, 1=uppercase only
bso=01 -- Backspace: 0=backspace, 1=backspace+space+backspace
dlo=00 -- Delete: 0 = backspace over line, 1=carriage return
eko=01 -- Echo: 0=echo off, 1=echo on
alf=01 -- Auto linefeed: 0=auto linefeed disabled, 1=auto linefeed
enabled
nul=00 -- End-of-line null count (the number of NULL characters to send
at the end of a line; typically used to allow teletypes to return the
carriage to the left)
pau=01 -- Pause: 0=End-of page pause disabled, 1=End-of-page pause
enabled
pag=18 -- Number of lines per page
bsp=08 -- Backspace character
del=18 -- Delete line character
eor=0D -- End-of-record character
eof=1B -- End-of-file character
rpr=04 -- Reprint line character
dup=01 -- Duplicate last-line character
psc=17 -- Pause character
int=03 -- Interrupt character
qut=05 -- Quit character
bse=08 -- Backspace echo character
ovf=07 -- Line-overflow character (ding)
par=00 -- Initialization value
bau=06 -- Baud rate
xon=11 -- X-ON character
xof=13 -- X-OFF character
col=50 -- Number of columns
row=18 -- Number of rows
xtp=00
wnd=00 -- Window number
val= -- Data in rest of descriptor is valid
sty= -- Window type
cpx= -- X cursor position
cpy= -- Y cursor position
fgc= -- Foreground color
bgc= -- Background color
bdc= -- Border color
On 3/6/2017 6:42:11 PM, "Tim Fadden" <t.fadden at cox.net> wrote:
>On 3/6/2017 1:21 PM, Tim Fadden wrote:
>>Quick question....
>>
>>Is reading the source code the only detailed documentation for the
>>xmode command options, and what the values do?
>>I was looking at the nitros9 wiki docs, but I couldn't find any
>>detailed docs there.
>>The options have changed at some time later that the detailed help I
>>have on it. :-)
>>
>>Thx,
>>
>I have been looking for the last couple of hours with no success.
>
>Where can I get information on what values do what on these?
>
>xmode /t2
> nam=t2 mgr=SCF ddr=sc6551 hpn=07 hpa=FF68 upc=00 bso=01 dlo=00
> eko=01 alf=01 nul=00 pau=01 pag=18 bsp=08 del=18 eor=0D
> eof=1B rpr=04 dup=01 psc=17 int=03 qut=05 bse=08 ovf=07
> par=00 bau=06 xon=11 xof=13 col=50 row=18 xtp=00 wnd=00
> val= sty= cpx= cpy= fgc= bgc= bdc=
>
>some of them are abviously on or off ie 0 or 1 some not so, and some I
>have no idea what they are.
>
>I have this from an old doc:
>
>Determines baud rate, word length, and stop-bits for a serial device.
>This byte is bit-mapped as follows:
>
> Bits: 7 6 5 4 3 2 1 0
> ----- ---------- ----- --------------------
> Stop bits Word length Reserved Baud rate
>
> 0 - 1 bit 00 - 8 bits 0 - 110 3 - 1200 6 -
>9600
> 1 - 2 bits 01 - 7 bits 1 - 300 4 - 2400 7 -
>19200*
> 2 - 600 5 - 4800 8 -
>32000**
> * This is for ACIAPAK only ** For SIO driver only
>
>Ex: xmode /p baud=22 gives 1 stop bit, 7 data bits, and 600 baud
> xmode /t3 baud=86 gives 2 stop bits, 8 data bits, and 9600 baud
>
>I am assuming the values need to be converted from bin to dec, and not
>hex? I understand this and can figure it out, but what about the other
>names/value?
>
>Some of the names have changed since the doc was made.
>
>I looked through the nitros9 source code, bud didn't have any luck.
>
>how about "par" parity I assume, there is none odd and even what value
>do I plug in?
>
>sorry for being such a pest, but I am getting frustrated.
>
>any help or pointers are greatly appreciated.
>
>-- Tim Fadden
>"Hey Schmidt, don't forget about the six P's.
>Proper Preparation Prevents Piss-Poor Performance!"
>
>
>-- Coco mailing list
>Coco at maltedmedia.com
>https://pairlist5.pair.net/mailman/listinfo/coco
More information about the Coco
mailing list