foreseen

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

search.py (239B)


      1 #!/usr/bin/env python3
      2 import random
      3 import os
      4 
      5 query = os.environ.get("QUERY_STRING", "")
      6 
      7 if not query:
      8     print(f"10 enter some info", end="\r\n")
      9 else:
     10     print(f"20 text/gemini", end="\r\n")
     11     print("Hey, you entered: " + query)
     12