Carriage no return by grumzik

m:-prompt1(''),k(0).\x0d
k(N):-tab(N),read_line_to_codes(user_input,S),not(S=end_of_file),format('~s', [S]),nl,length(S,L),k(L+N).\x0d

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page