You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Console is a robust library designed to enable ANSI escape character sequences, which are used for generating colored terminal text and cursor positioning, to function seamlessly on MS Windows.
628
+
Console is a robust library designed to enable ANSI escape character sequences, which are used for generating colored terminal text and cursor positioning.
629
629
This library is a key addition to FileSystemPro as a third-party library, enhancing the toolkit for developers who require consistent terminal styling across different operating systems.
630
630
631
631
## Features
@@ -666,12 +666,13 @@ This library is a key addition to FileSystemPro as a third-party library, enhanc
666
666
667
667
## Sample Codes
668
668
669
+
> [!NOTE]
669
670
> Please note that **GitHub (and PYPI) does not support colored text** in README files. This is due to the limitations of the markdown language used in GitHub (and PYPI) READMEs, which does not have built-in support for text color changes.
670
671
671
672
<details>
672
673
<summary>Console: Printing a red foreground text message</summary>
673
674
674
-
The following example shows how to print some red foreground texts using Console
675
+
The following example shows how to print some red foreground texts using **Console**
675
676
676
677
```py
677
678
from filesystem import console as fsconsole
@@ -702,7 +703,7 @@ This is a new warn message</span>
702
703
<details>
703
704
<summary>Console: Printing a blue background text message</summary>
704
705
705
-
The following example shows how to print some blue background texts using Console
706
+
The following example shows how to print some blue background texts using **Console**
706
707
707
708
```py
708
709
from filesystem import console as fsconsole
@@ -711,7 +712,7 @@ from filesystem import console as fsconsole
711
712
print(fsconsole.background.BLUE, 'This is a blue background message')
712
713
713
714
# This will print a no space text to your print message
714
-
print(fsconsole.background.BLUE+'This is another blue background warn message')
715
+
print(fsconsole.background.BLUE+'This is another blue background message')
715
716
716
717
# You can use f-string format to assign the color to your print
717
718
print(f'{fsconsole.background.BLUE}This is a new blue background message{fsconsole.background.RESET}')
@@ -732,7 +733,7 @@ This is a new blue background message</span>
732
733
<details>
733
734
<summary>Console: Different foregrounds, backgrounds and styles</summary>
734
735
735
-
The following example shows how to print some texts with different backgrounds, foregrounds and styles using Console
736
+
The following example shows how to print some texts with different backgrounds, foregrounds and styles using **Console**
736
737
737
738
```py
738
739
# Prints a red foreground text
@@ -755,8 +756,8 @@ Output:
755
756
756
757
</details>
757
758
758
-
Remember, for the color changes to work, your console must support ANSI escape sequences, which are used to set the color. Not all consoles do, so if you’re not seeing the colors as expected, that could be why.
759
+
Remember, for the color changes to work, your Terminal must support ANSI escape sequences, which are used to set the color. Not all Terminals do, so if you’re not seeing the colors as expected, that could be why.
0 commit comments