Cano-Projects / cano-sh

Shell Written in C
10 stars 3 forks source link

cursor position is incorrect if previous command does not have a newline #19

Open CobbCoding1 opened 1 month ago

CobbCoding1 commented 1 month ago

If the previously outputted command does not have a newline, it will push the shell prompt forward, and then the cursor does not render to the correct position.

For example use /usr/bin/echo -n TEST and you will see what I mean