If you really want to change the font, then create a GUI(non-console) app embedding the MSYS2 shell window within. Then have your gui app automate the calling of the msys2 command menu stuff and change the font. With a few tricks you could hide the msys2 window decorations, but that's windows api stuff, NOT console api stuff.
GENERAL RULE OF THUMB: If you're righting a console app, don't try to change the font within the app itself. Console apps are meant to be in the console using standard text. That's what console apps do. You can expect the same text input/text output/standard error handles on basically any operating system. The standard shell commands don't change fonts. i.e. cp/copy, rename/mv, etc... There are no switches to use other fonts because when running these tools in a shell implies certain environment constraints. CONSOLE apps are mostly NON-GUI apps by definition. Curses/ncurses pushes that text-only environment terminal to its limitations. Please remember what "terminal" meant...something really old really green...mainframe'ish...Possibly DEC VAX, possibly IBM mainframe... No X-window, no WINDOWS, no DESKTOP GUI whatsoever. When you're in that environment dating back to the 50's, 60's...now try asking them your question again: "Hi there, I'd like to change the text font on the screen. How can I do that?" I hope you realize perhaps you are very creative and have a different perspective, but these guys have hardware resource constraints so the option for them to have not only one font, but many fonts was difficult to achieve. Possibly there were many different locales of system fonts for the different languages/countries the systems were purposely built for, but that was it. I do hope this helps. On 02/25/2015 08:23 PM, Bill Lee wrote: > > On 02/25/2015 06:19 PM, David Macek wrote: >> On 26. 2. 2015 0:20, Bill Lee wrote: >>> I use GCC to create a .exe executable. When I start the program, it >>> opens a new window where my code displays "stuff". (Uses ncurses) The >>> font used is Courier-new although I can use the "Fonts" tab at the >>> top to select other fonts. I want the program to START with the >>> chosen font. >> I'm still very confused as to how this related to MSYS2. If you wrote >> this application -- including the Fonts tab and font switching -- why >> can't you just run the same font switching routine at application >> start? Maybe a screenshot would help. >> > > It is related to Msys2 only because it is an application being developed > using Msys2. I had hoped others having created applications that when > launched open a new window would give me some idea of where to go. > > As for the Fonts tab, that is NOT anything I have purposely coded nor > asked for in the application. They are "just there", supplied > gratuitously by Windows. > > I have attached a sample, not the same program, but exhibiting the > characteristic. > > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming The Go Parallel Website, sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for all > things parallel software development, from weekly thought leadership blogs to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > > > > _______________________________________________ > Msys2-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/msys2-users > ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Msys2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/msys2-users
