Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 522 Bytes

readme.md

File metadata and controls

31 lines (22 loc) · 522 Bytes

go-windows-consoleicon

Set icon to the corner of the current console (Command Prompt)

// +build example

package main

import (
    "os"

    "github.com/nyaosorg/go-windows-consoleicon"
)

const icon_restore = true

func main() {
    closer, err := consoleicon.SetFrom(`C:\Windows\System32\notepad.exe`)
    if err != nil {
        return
    }
    defer closer(icon_restore)

    var dummy [1]byte
    os.Stdin.Read(dummy[:])
}