#!/usr/bin/python3 # -*- coding: utf-8 -*- from curses import color_pair as get_pair def main (line, screen): from socket import gethostname as hostname from time import strftime from locale import setlocale, LC_ALL setlocale (LC_ALL, 'fr_FR.UTF-8') screen.addstr (line, 0, hostname () + ': ' + strftime ('%A %d %B %Y %T'), get_pair (1)) line += 1 return (line)