keyboard buffer

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • quicksilver123
    New Member
    • Feb 2008
    • 2

    keyboard buffer

    i need to read a value from the keyboard buffer using C on a linux platform.
    also, i can open a new terminal by issuing the command "gnome-terminal" but how do i execute a process in the new terminal from within the existing terminal?
    pls help...
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    Have you used scanf() for keyboard input? If not, look it up.

    The other stuff I can't help you with as I am not a Linux person but I's sure someone else will chime in here.

    Comment

    • Simonius
      New Member
      • Feb 2008
      • 47

      #3
      Depending on what you want to accomplish scanf or getch should do the trick.

      Comment

      • sicarie
        Recognized Expert Specialist
        • Nov 2006
        • 4677

        #4
        Originally posted by Simonius
        Depending on what you want to accomplish scanf or getch should do the trick.
        Never ever ever ever use getch() or anything in conio.h if you can avoid it. You should try to use standard libraries where possible.

        Comment

        • quicksilver123
          New Member
          • Feb 2008
          • 2

          #5
          thnkx for helping but i dont think that u get the idea.... i am a not a C professional but im no newbie either.... i need help on reading from the buffer and not the user.... `n i cant use scanf for the function,can i....

          Comment

          • weaknessforcats
            Recognized Expert Expert
            • Mar 2007
            • 9214

            #6
            Why can't you use scanf() ??

            Comment

            Working...