foreseen

A text-based gemini browser with prefetching
git clone git://git.laack.co/foreseen.git
Log | Files | Refs | README | LICENSE

plaintext.cpp (362B)


      1 #include "../include/plaintext.hpp"
      2 
      3 #include <cstdint>
      4 
      5 #include "../include/shared.hpp"
      6 
      7 Plaintext::Plaintext(std::string input) : text(input) {}
      8 
      9 std::string Plaintext::textToDraw() { return text + "\n"; }
     10 
     11 uint8_t Plaintext::getColor() { return COLOR_PLAINTEXT; }
     12 
     13 LineType Plaintext::type() { return PLAINTEXT; }
     14 
     15 bool Plaintext::isBold() { return false; }