6
1
mirror of https://git.mills.io/saltyim/saltyim.git synced 2024-06-20 13:58:22 +00:00

fix: some fixes to display artifacts (#13)

Reviewed-on: https://git.mills.io/prologic/saltyim/pulls/13
Co-authored-by: xuu <xuu@noreply@mills.io>
Co-committed-by: xuu <xuu@noreply@mills.io>
This commit is contained in:
xuu 2022-03-19 21:32:08 +00:00 committed by James Mills
parent b694dca713
commit a2ac6a9ef3

@ -49,7 +49,7 @@ get_user () {
format_message() {
me="$1"
message="$2"
printf "%s\t(%s) %s" "$(date -u +%FT%TZ)" "$me" "$message"
printf "%s\t(%s)\t%s" "$(date -u +%FT%TZ)" "$me" "$message"
}
stream () {
@ -214,10 +214,14 @@ chatwith() {
if [ -z "$message" ]; then
continue
fi
move_cursor_up
format_message "$me" "$message" \
| salty -i "$SALTY_IDENTITY" -r "$key" \
| curl -fqsS --data-binary @- "$endpoint"
move_cursor_up
clear_line
format_message "$me" "$message"
echo
done