Echo output is different from expected formatted output

后端 未结 2 1155
Happy的楠姐
Happy的楠姐 2021-01-24 09:44

I\'m using the following formatting for echo

It should output text that is both bold and underlined, but instead of making it bold it\'s giving a \'brighter\' variant o

2条回答
  •  天命终不由人
    2021-01-24 10:23

    It seems you are running bash through the old cygwin.bat, so you are using the Windows Console as terminal, and not through the default Mintty that is a more advanced Terminal.

    By default Cygwin setup install the "Cygwin Terminal" entry in the windows menu

    The content of the menu entry is like

    C:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico -
    

    with path like

    C:\cygwin64\bin
    

    These items can be a also recreated at the last step of cygwin setup running. There are two box entries :

    □ Create icon on Desktop
    □ Add icon to Start Menu

    If you enable them, both will be recreated

提交回复
热议问题