On Dec 11, 2017, at 3:26 PM, Thomas <tho...@dateiliste.com> wrote:
> 
> On 2017-12-11 21:47, Warren Young wrote:
>> Try this > echo -e "\tHi" | cat
> 
> Tried it just now.

The leading $ means it’s intended to be understood as a Bourne shell command.

The point remains true in Windows, however.  This works the same way in 
PowerShell:

    PS C:\> echo "`tHi"

I tried to find a cmd.exe way to do it, but you have to work out a way to 
insert a literal TAB character into a variable or string to make it work.  Once 
you work that trick out, cmd.exe also displays tab characters as 8 spaces.

> 'cat' is not recognized as an internal or external command,

It wasn’t really required for the demo anyway.

>> It’s indented 8 spaces, isn’t it?  Are you now going to go try and get your 
>> terminal emulator to change as well?  Good luck!
> 
> I'm not using a terminal emulator of any kind.

I see that you’re running on Windows 7 now — your email program ratted you out 
— so indeed, your OS’s command shells lack terminal emulation features.

But, Microsoft did once support it, and now does so again.

DOS’s command.com had the ANSI.SYS facility to make it understand ANSI terminal 
escape sequences.  This survived in the DOS-derived versions of Windows through 
Windows ME, and it was also provided in the 16-bit OS emulation support for NT 
and its derivatives.

We eventually lost that when the last 16-bit compatibility was removed from 
Windows.

But then in recent versions of Windows 10, the Windows console got VT100/ANSI 
terminal emulator support back, which was necessary to allow WSL to work 
properly.

> And if I did the last thing that would come into my mind would be printing 
> out the contents of a file.

You’ve never used the cmd.exe command TYPE or the PowerShell command cat?

The Fossil command “cat” is also useful in scripts.

> There's way better tools for this.

notepad.exe and Internet Explorer also obey the 8-character tab standard.  Go 
tell Microsoft it is wrong, too.

> 4 is a much better value than the 8 currently used

I happen to agree, but I also understand when a program chooses to hew to the 
ancient de facto standard.

This is why some people insist on using spaces instead.

Let’s not have that hoary flame war again here, too, please?

> Maybe it should be configurable somehow.

It is: Fossil lets you modify the skin to suit your taste.
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to