Find the answer to your Linux question:
Results 1 to 2 of 2
Hi!! I am developing an editor using ncurses and I am getting trouble with the lines of characters. Is there any way to get the text of a certain line?? ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Nov 2009
    Posts
    104

    get the text of line using ncurses


    Hi!! I am developing an editor using ncurses and I am getting trouble with the lines of characters. Is there any way to get the text of a certain line?? or at least, to get the character of a certain position (x,y) written on the screen, so I can get all the characters of the line.

    I know there is a lot of functions on man ncurses, but I have read and found nothing.

    Thank you very much!!!

  2. #2
    Just Joined!
    Join Date
    Aug 2010
    Posts
    4

    winch = window-input-character

    The functions you're looking for are the
    ones with "inch" in the name, e.g,. "winch",
    "winchstr". That's for a start. The wide-character
    functions such as "in_wchstr" are more complicated
    to use.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •