Update the set_color command: Add underline support, make the command a bit more rubust to missing ferminal features, and update documentation and completions

darcs-hash:20060615134915-ac50b-de1092e56490bbf1c58cc3422c239a2997645b6b.gz
This commit is contained in:
axel
2006-06-15 23:49:15 +10:00
parent eed8b61a9e
commit 94d1322fc1
4 changed files with 49 additions and 13 deletions

View File

@@ -560,7 +560,7 @@ int output_color_code( const wchar_t *val )
wchar_t *next = (wchar_t *)al_get( &el, j );
is_bold |= (wcsncmp( next, L"--bold", wcslen(next) ) == 0 ) && wcslen(next)>=3;
is_bold |= wcscmp( next, L"-b" ) == 0;
is_bold |= wcscmp( next, L"-o" ) == 0;
is_underline |= (wcsncmp( next, L"--underline", wcslen(next) ) == 0 ) && wcslen(next)>=3;
is_underline |= wcscmp( next, L"-u" ) == 0;