File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -708,16 +708,16 @@ The following example shows how to print some blue background texts using Consol
708708from filesystem import console as fsconsole
709709
710710# This will print a spaced text to your print message
711- print (fsconsole.foreground. RED , " This is a warn message" )
711+ print (fsconsole.background. BLUE , ' This is a blue background message' )
712712
713713# This will print a no space text to your print message
714- print (fsconsole.foreground. RED + " This is another warn message" )
714+ print (fsconsole.background. BLUE + ' This is another blue background warn message' )
715715
716716# You can use f-string format to assign the color to your print
717- print (f ' { fsconsole.foreground. RED } This is a new warn message { fsconsole.foreground .RESET } ' )
717+ print (f ' { fsconsole.background. BLUE } This is a new blue background message { fsconsole.background .RESET } ' )
718718
719719# This text will be printed without color (default)
720- print (" This is a normal text" )
720+ print (' This is a normal text' )
721721```
722722
723723Output:
You can’t perform that action at this time.
0 commit comments