Less gets keyboard input from stderr?

前端 未结 4 2108
南方客
南方客 2020-12-11 01:25

I\'m taking a look at the code to the \'less\' utility, specifically how it gets keyboard input. Interestingly, on line 80 of ttyin.c, it sets the file descriptor to read fr

4条回答
  •  误落风尘
    2020-12-11 01:58

    It appears to be Linux specific functionality that sends keyboard input to FD 2.

提交回复
热议问题