mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-11-03 09:22:01 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			359 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			359 B
		
	
	
	
		
			C++
		
	
	
	
	
	
// Console functions
 | 
						|
 | 
						|
#pragma once
 | 
						|
 | 
						|
#include <string>
 | 
						|
 | 
						|
namespace console {
 | 
						|
    enum display_t {
 | 
						|
        reset = 0,
 | 
						|
        prompt,
 | 
						|
        user_input,
 | 
						|
        error
 | 
						|
    };
 | 
						|
 | 
						|
    void init(bool use_simple_io, bool use_advanced_display);
 | 
						|
    void cleanup();
 | 
						|
    void set_display(display_t display);
 | 
						|
    bool readline(std::string & line, bool multiline_input);
 | 
						|
}
 |