linux-0.11调试教程,update_line()函数中的按下字符键对应的缓冲区

第一种情况:光标在最后

[/root]#a    -->    [/root]# ab       按下b键,length1



第二种情况:光标在倒数第一个字符位置

[/root]# c    -->    [/root]# ac        按下a键, length5    


第三种情况:光标在倒数第二个字符位置(或第N个位置N>=2)

[/root]# bc    -->    [/root]# abc       按下a键,length5

linux-0.11调试教程,update_line()函数中的按下字符键对应的缓冲区_第1张图片


[/root]# bc    -->   [/root]# bc    -->    [/root]# abc


你可能感兴趣的:(linux-0.11调试教程,update_line()函数中的按下字符键对应的缓冲区)