mprat / Terminus

Linux learning game
http://mprat.org/Terminus
GNU General Public License v2.0
134 stars 50 forks source link

tab completion after a complete path adds an extra \t (tab character) #55

Open rdeits opened 11 years ago

rdeits commented 11 years ago

Example: (from Home):

cd MIT[tab] There is no room called MIT .

(note the tab character between "MIT" and "." on the last line.

edit: github makes this harder to show, because it converts the tab between "MIT" and "." to a single space.

mprat commented 11 years ago

This happens because jquery terminal processes the "\t" character as a potential character in a name. Not sure we care enough in general to fix this, but it might be nice for cleanliness.

rdeits commented 11 years ago

Maybe just strip all whitespace at the end of each command? This might also fix the "cd ~" issue you were having in case there are other users with the same non-US keyboard layout.