CONSOLETITLE: Difference between revisions

From QB64 Phoenix Edition Wiki
Jump to navigation Jump to search
m (Protected "CONSOLETITLE" ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite)))
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 9: Line 9:
{{PageDescription}}
{{PageDescription}}
* The ''text$'' used can be a literal or variable [[STRING]] value.
* The ''text$'' used can be a literal or variable [[STRING]] value.
* '''[[Keywords currently not supported by QB64#Keywords_not_supported_in_Linux_or_macOS_versions|Keyword not supported in Linux or macOS versions]]'''
{{PageAvailability}}
<!-- QB64 = a version or none, QBPE = a version or all, Platforms = yes or no -->
<gallery widths="48px" heights="48px" mode="nolines">
File:Qb64.png|'''v1.4'''
File:Qbpe.png|'''all'''
File:Apix.png
File:Win.png|'''yes'''
File:Lnx.png|'''no'''
File:Osx.png|'''no'''
</gallery>
<!-- additional availability notes go below here -->




{{PageExamples}}
{{PageExamples}}
''Example:'' Hiding the main program window while displaying the console window with a title.
;Example: Hiding the main program window while displaying the console window with a title.
{{CodeStart}} '' ''
{{CodeStart}}
{{Cl|$SCREENHIDE}}
{{Cm|$SCREENHIDE}}
{{Cl|_DELAY}} 4
{{Cl|_DELAY}} {{Text|4|#F580B1}}
{{Cl|$CONSOLE}}
{{Cm|$CONSOLE}}
{{Cl|_CONSOLETITLE}} "Error Log"
{{Cl|_CONSOLETITLE}} {{Text|<nowiki>"Error Log"</nowiki>|#FFB100}}


{{Cl|_DEST}} {{Cl|_CONSOLE}}
{{Cl|_DEST}} {{Cl|_CONSOLE}}
{{Cl|PRINT}} "Errors go here! (fyi, this line is not an error)"
{{Cl|PRINT}} {{Text|<nowiki>"Errors go here! (fyi, this line is not an error)"</nowiki>|#FFB100}}
{{Cl|END}}
{{Cl|END}}
{{CodeEnd}}
{{CodeEnd}}


:''Note:'' You can also use [[SHELL]] "title consoletitle" to set the title of the console window. However, '''the recommended practice is to use [[_CONSOLETITLE]]'''.
{{PreStart}}
'''Note:'''
You can also use [[SHELL]] "title consoletitle" to set the title of the
console window. However, recommended is to use '''_CONSOLETITLE'''.
{{PreEnd}}




''See also:''
{{PageSeeAlso}}
* [[$CONSOLE]], [[_CONSOLE]]
* [[$CONSOLE]], [[_CONSOLE]]
* [[$SCREENHIDE]], [[$SCREENSHOW]]
* [[$SCREENHIDE]], [[$SCREENSHOW]]

Latest revision as of 17:55, 6 October 2024

The _CONSOLETITLE statement creates the title of the console window using a literal or variable string.


Syntax

_CONSOLETITLE text$


Description


Availability


Examples

Example
Hiding the main program window while displaying the console window with a title.
$SCREENHIDE
_DELAY 4
$CONSOLE
_CONSOLETITLE "Error Log"

_DEST _CONSOLE
PRINT "Errors go here! (fyi, this line is not an error)"
END
Note:
 You can also use SHELL "title consoletitle" to set the title of the
 console window. However, recommended is to use _CONSOLETITLE.


See also



Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link