User Profile

Collapse

Profile Sidebar

Collapse
Devi reman
Devi reman
Last Activity: Jul 19 '10, 11:33 AM
Joined: Jul 19 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Devi reman
    started a topic tty manipulation
    in C

    tty manipulation

    I need to replicate a key press twice so that the action assocated with key press occurs in a single shot. the belwo code i have implemented for the same.
    Code:
    fd = open("/dev/pts/10", O_RDONLY); 
    if(fd==-1) 
    { 
     return(0);  
    } 
    simulate_key = -K_F2; 
    rc = ioctl(fd, TIOCSTI,simulate)
    close(fd);
    but while running i am getting error after the ioctl command...
    See more | Go to post

  • Devi reman
    started a topic tty manipulation

    tty manipulation

    I need to replicate a key press twice so that the action assocated with key press occurs in a single shot. the belwo code i have implemented for the same.
    Code:
    fd = open("/dev/pts/10", O_RDONLY); 
    if(fd==-1) 
    { 
     return(0);  
    } 
    simulate_key = -K_F2; 
    rc = ioctl(fd, TIOCSTI,simulate)
    close(fd);
    but while running i am getting error after the ioctl command...
    See more | Go to post
No activity results to display
Show More
Working...