Shop OBEX P1 Docs P2 Docs Learn Events
ASCII control codes for the serial terminal. Solved. — Parallax Forums

ASCII control codes for the serial terminal. Solved.

PliersPliers Posts: 280
edited 2017-10-08 00:09 in Propeller 1
ASCII control (escape) codes.
Where can I find a list of these codes? I did some googling, but it was a bit confusing.
For example, serial.Tx($0D) is for carriage return. I know I saw a list a few years ago, but can't seem to find it now.

Comments

  • From the serial terminal window, click prefs then select the function tab.
    ASCII%20codes.jpg
    454 x 533 - 76K
  • Thanks, Chris.
  • I have this CON block in my variant of FullDuplexSerial.
    con { pst formatting }
    
      HOME    =  1
      CRSR_XY =  2
      CRSR_LF =  3
      CRSR_RT =  4
      CRSR_UP =  5
      CRSR_DN =  6
      BELL    =  7
      BKSP    =  8
      TAB     =  9
      LF      = 10
      CLR_EOL = 11
      CLR_DN  = 12
      CR      = 13
      CRSR_X  = 14
      CRSR_Y  = 15
      CLS     = 16
    
    Instead of:
      term.tx($0D)
    
    you can use this [more obvious] version:
      term.tx(term#CR)
    
  • thanks for the formation
Sign In or Register to comment.