خرید بک لینک

I have run into a problem. In my case it was a Lua program printing a series of numbers. Lua uses tabs as the separators, and the output came out like this in my 80-column terminal:

1       2       3       4       5       6       7       8       9       10      1
1      12

Note how the number 11 is truncated, with the first 1 at column 79 and the second 1 at column 0 of the next ine. I expected the complete number 11 to appear in the next line instead.

It's not Lua-specific, and is easily reproducible with this one-liner:

printf '1t2t3t4t5t6t7t8t9t10t11t12'

I have read this question and the accepted answer: Why there are 11 tabstops on a 80-column console? which made me understand why that is happening. The question is, is there a way to override that behaviour, to make the last tab jump to column 0 in the next line, rather than to the last column in the current line?

- - , .

برچسب: نویسنده: استخدام کار تاريخ: يکشنبه 25 بهمن 1394 ساعت: 18:56

صفحه بندی