mirror of
				https://github.com/ArthurSonzogni/FTXUI.git
				synced 2025-11-04 05:28:15 +08:00 
			
		
		
		
	Renames examples for style.
This commit is contained in:
		
							
								
								
									
										20
									
								
								examples/dom/style_bold.cpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								examples/dom/style_bold.cpp
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
			
		||||
#include "ftxui/screen/screen.hpp"
 | 
			
		||||
#include "ftxui/dom/elements.hpp"
 | 
			
		||||
#include <iostream>
 | 
			
		||||
 | 
			
		||||
int main(int argc, const char *argv[])
 | 
			
		||||
{
 | 
			
		||||
  using namespace ftxui;
 | 
			
		||||
  auto document =
 | 
			
		||||
    hbox(
 | 
			
		||||
      text(L"This text is "),
 | 
			
		||||
      text(L"bold") | bold,
 | 
			
		||||
      text(L". Do you like it?")
 | 
			
		||||
    );
 | 
			
		||||
  auto screen = Screen::TerminalOutput(document);
 | 
			
		||||
  Render(screen, document.get());
 | 
			
		||||
 | 
			
		||||
  std::cout << screen.ToString();
 | 
			
		||||
 | 
			
		||||
  return 0;
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user