I tried to maintain history of commands in xv6 which can be accessed using up and down arrow keys. I tried to maintain a history of 16 commands at time. I tried to start implementing it by starting from console.c but ended up getting confused. How should I do this ?
Asked
Active
Viewed 92 times
2
-
1You should look at the `buf` array in `main()` function of `sh.c` file – Mathieu Oct 01 '21 at 08:46