Shop OBEX P1 Docs P2 Docs Learn Events
Menu''s messing up using procomm — Parallax Forums

Menu''s messing up using procomm

ArchiverArchiver Posts: 46,084
edited 2001-06-12 19:06 in General Discussion
Hi Eric,

Procomm has an option on one of the menus to automatically add a line
feed after every CR it receives. I don't think hyperterminal has
that option, but I wouldn't swear to it. Lots of terminal programs
don't have, and you have to add it to your software if it will need
to work with different terminals. I use code something like the
following:

LF var 10 ' line feed
LFb var bit ' flag: 1=line feed send, 0=not

debug "hello",CR,rep LF\LFb

So, using the "rep" modifier, sending the line feed is conditional on
the state of the LFb flag. One of my menu options allows the user to
toggle the LFb, to make the setting appropriate for the current
terminal. The code stores the current LFb setting in eeprom as a
default for the next startup.

-- regards
Tracy Allen
electronically monitored ecosystems
http://www.emesystems.com
mailto:tracy@e...



>I have a controller board I built using a BS2. This is
>used to control a Vibco SCR controlled vibrator. We
>will be interfacing (sending scripts to control speed
>of motor ) via a cisco terminal server (network to
>serial) The menu's I wrote display fine in the debug
>window but in procomm and hyperterm they don't produce
>a carriage return hence the menu's overwrite. This is
>a cosmetic fix I know but I would like to know if
>anyone has seen or done this
>
>Thanks,
>Eric
>
>=====
>Eric Haskins
>SEA-Lan Systems
>genius@t...
>727-442-1905
>
Sign In or Register to comment.