Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Output <newline> Character

0 views
Skip to first unread message

Benson Lo

unread,
Oct 28, 1996, 3:00:00 AM10/28/96
to

I am doing a project using Tcl/Tk and Linux on a 486 PC right now. The
project involves the binary I/O of COM ports.

I've recently encountered a problem when I need to send <null> character
to COM port which Tcl can't handle. Luckily, I've solved the problem
with the tip from a web site by using the Unix command, tr.

Then another problem arises when I need to send <newline> or <linefeed>
to the COM port. Seems like this time neither Tcl nor Unix command can
deal with it.

I am hoping someone could help me out of this situation or show me some
good pointers. Thanks in advance!

Best regards,

Benson
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Motorola Semiconductors Hong Kong Ltd.
7/F, Profit Ind. Bldg. Phase II, 1-15, Kwai Fung Crescent,
Kwai Chung, N.T., Hong Kong.

Tel:(852)24808333, Direct:(852)24808424, Fax:(852)24182806
Mail Drop:P31, Email:R25...@email.sps.mot.com
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Juergen Scholich

unread,
Oct 29, 1996, 3:00:00 AM10/29/96
to

Benson Lo wrote:
>> Then another problem arises when I need to send <newline> or <linefeed>
> to the COM port. Seems like this time neither Tcl nor Unix command can
> deal with it.
>
>
--
May the
echo -ne "\015"
for CR, or the
echo -ne "\012"
for LF will be a solution for this problem ??
Cheers Juergen
(o o)
+------------------------oOO-(_)-OOo---------------------------+
| Juergen Scholich |
| Bachwiesenstr. 18 |
| D-70199 Stuttgart |
| Germany |
| Phone: {++49|0}711-604627 |
| e-mail: js...@ibm.net |
+--------------------------------------------------------------+

0 new messages