![]() |
Forum Index : Microcontroller and PC projects : Sending to serial port without CR LF?
Author | Message | ||||
mookster1 Regular Member ![]() Joined: 10/06/2011 Location: New ZealandPosts: 81 |
Hi all I'm currently trying to write a terminal program for my Maximite so that I can operate my screenless and keyboardless miniMaximite with its COM2 port in console mode, over a radio link, using the Maximite's serial port (which has a screen and keyboard plugged in.) Currently I have it so that it uses INKEY$ to store one byte from the keyboard in char$, then it uses PRINT #1, char$ to send it over COM2. The issue I am currently having is that the PRINT #nbr command sends the character to the serial port, but it's also sending CR/LF to the serial port as well, so I can't actually type a command! Is there any command I can use to send a character directly to the serial port without this occurring? Cheers! Capacitance is futile - roll on 2012! |
||||
Greg Fordyce Senior Member ![]() Joined: 16/09/2011 Location: United KingdomPosts: 153 |
Use a semicolon at the end of the print statement. More info in the manual. Greg |
||||
CircuitGizmos![]() Guru ![]() Joined: 08/09/2011 Location: United StatesPosts: 1427 |
PRINT #1, char$; I have not tested this on a serial port, but I understand the semicolon suppresses the CR/LF on screen. Edit: And Greg beat me... Micromites and Maximites! - Beginning Maximite |
||||
mookster1 Regular Member ![]() Joined: 10/06/2011 Location: New ZealandPosts: 81 |
Thanks for that, I can't believe I couldn't find this in the manual! It does indeed do the trick ![]() Capacitance is futile - roll on 2012! |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |