commit | ceba31ade40a5a51dd04a525924942d464b2486e | [log] [tgz] |
---|---|---|
author | Johan Hedberg <johan.hedberg@intel.com> | Wed Dec 09 12:40:29 2015 +0200 |
committer | Anas Nashif <anas.nashif@intel.com> | Fri Feb 05 20:25:06 2016 -0500 |
tree | eb52de495c903e55b0e072dd81203d789bf40464 | |
parent | 05e0c02a5d33387a87b6d1b2866e60124c526276 [diff] |
drivers/console: Use cursor save/restore escape sequences Instead of keeping track how many characters we need to move back to get to the original position, take advantage of the save/restore escape sequences. This allows us to drop the extra 'i' variable from both insert_char() as well as del_char(). Change-Id: I69a2b5ea12ec2a7a2e4d519b55e4c737b5d5d25a Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>