From 4212a4fd2b4747aa3b3eae3ce5198fb632022088 Mon Sep 17 00:00:00 2001 From: Lionel Dricot Date: Fri, 10 Dec 2021 15:24:26 +0100 Subject: [PATCH] off-98 prompt --- av98.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/av98.py b/av98.py index 5df51f8..1149b9c 100755 --- a/av98.py +++ b/av98.py @@ -264,6 +264,7 @@ class GeminiClient(cmd.Cmd): self.no_cert_prompt = "\x1b[38;5;76m" + "AV-98" + "\x1b[38;5;255m" + "> " + "\x1b[0m" self.cert_prompt = "\x1b[38;5;202m" + "AV-98" + "\x1b[38;5;255m" + self.offline_prompt = "\x1b[38;5;76m" + "OFF-98" + "\x1b[38;5;255m" + "> " + "\x1b[0m" self.prompt = self.no_cert_prompt self.gi = None self.history = [] @@ -1272,9 +1273,11 @@ you'll be able to transparently follow links to Gopherspace!""") """Use AV-98 offline by only accessing cached content""" if self.offline_only: self.offline_only = False + self.prompt = self.no_cert_prompt print("AV-98 is online and will access the network") else: self.offline_only = True + self.prompt = self.offline_prompt print("AV-98 is now offline and will only access cached content") def do_sync_only(self, *args):