server/telnet: enhance telnet_move_cursor
authorTarek BOCHKATI <tarek.bouchkati@gmail.com>
Wed, 18 Aug 2021 18:55:48 +0000 (19:55 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Mon, 30 Aug 2021 13:54:06 +0000 (13:54 +0000)
commit9a9e9e2c666dcb4987421f89d3b09ff9951cb0a1
tree61fd939ac74906d2e90086c63f4fecf6ccfbcdd0
parent70cd395f3f0b7f7974125ce6e728980e855626ea
server/telnet: enhance telnet_move_cursor

instrument the telnet_move_cursor to detect when there is no change
of cursor position and if the requested new position is out of bounds.

Change-Id: I24da877e538a458da6d2f8ddc2a681eee404d2cb
Signed-off-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/6441
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
src/server/telnet_server.c