Thread View: comp.sys.transputer
1 messages
1 total messages
Started by Joseph Poole (C)
Thu, 15 Mar 1990 22:25
help needed to modify cserver
Author: Joseph Poole (C)
Date: Thu, 15 Mar 1990 22:25
Date: Thu, 15 Mar 1990 22:25
62 lines
2474 bytes
2474 bytes
For a class project I am trying to modify TDS to accept Hercules graphic
commands. I am doing this by modifying the cserver. In the function
DoTermPChan, contained in itermp.c, I defined my own protocol bytes
and execute graphic functions at that point. The problem that I am
having is that when I call the functions from the Occam side, the only
response that I get is beeps.
For debugging purposes I have the PC side write out the command byte
read in. I use printf("command is : %d\n", Command) before the large
switch statement. I have also created the following Occam code.
#USE userhdr
VAL tt.grph.pix.set IS BYTE 33:
INT key:
SEQ
keyboard ? key
IF
(key = 'a' (INT) )
screen ! tt.out.byte
TRUE
SKIP
screen ! tt.grph.pix.set; tt.grph.pix.set
keyboard ? key
If I input an 'a' I get the following output:
command is: 18
!command is: 13
If I input a ' ' I get :
command is 13
command is 13
'!' is ascii for 33. 18 is the protocol byte for tt.out.byte. 13 is the
protocol byte for tt.beep.
My understanding of this is that Occam is screening output to screen, only
allowing its protocol bytes across. Is that right?
Any help or tips would be greatly appreciated. Please reply to
joe@umbc5.umbc.edu.
I am running a B004 card and TDS release 4.
Thanks much,
Joe
----------------------------------------------------------------------------
Joseph Poole Student Consultant / Graduate Assistant
University of Maryland Baltimore County
internet joe@umbc5.umbc.edu
UUCP ..!uunet!umbc5.umbc.edu!joe
bitnet joe@umbc2
----------------------------------------------------------------------------
Joseph Poole Student Consultant / Graduate Assistant
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads