Author Topic: Force new line in terminal  (Read 2133 times)

adyble

  • Newbie
  • *
  • Posts: 10
    • View Profile
Force new line in terminal
« on: June 09, 2009, 03:34:53 pm »
Hi

I am receiving continuous data from com port. but whenassing a nrTerminal, is overwriting the data on the same line instead of displaying on the next line, like hypterminal does.

Really good component, works great by the way.
Andy
Dyble

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: Force new line in terminal
« Reply #1 on: June 09, 2009, 11:32:41 pm »
Hello

The TnrTerminal component was designed for VT100/ANSI protocols support.

Possible your remote device sends  #13 byte. This ANSI command moves caret at the begin of current line.
Device needs to send #10 for move caret on the next line. The HyperTerminal has additional setting for handle this situation.

I recommend you to use ordinary TMemo control for TnrComm.Terminal property. It moves caret correctly after single #13.

Roman Novgorodov

DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.